# 前后端使用此请求
from rest_framework.response import Response
from rest_framework.decorators import APIView,api_view
# Create your views here.
# def oneApi(request):
#     return JsonResponse({'status':True,'msg':'Hello World'})
class oneApi(APIView):
    def get(self,request):
        return Response({'status':True,'msg':'Hello World'})
# @api_view(["GET"])
# def login(request):
#     return Response({'status':True,'msg':'login Successfully'})

class login(APIView):
    def get(self,request):
        return Response({'status':True,'msg':'login Successfully'})